CREATE FUNCTION [dbo].[Fn_GetPlacesByCountry] 
(	
	@country_id  bigint=null,
	@placetype_id  bigint=null
)
RETURNS TABLE 
AS
RETURN 
(
	-- Add the SELECT statement with parameter references here
	SELECT * FROM Places WHERE Places.placetype_id = @placetype_id AND Places.country_id = @country_id
)